<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>查看用户信息</title>
   <meta http-equiv="X-UA-Compatible" content="IE=7" />
		<%@ include file="../jslib/jquerylib.jsp" %>
		<script type='text/javascript' src="<%=request.getContextPath() %>/jslib/jquery.form.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/jslib/jquery.validate.min.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/jslib/additional-methods.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/jslib/password_strength_plugin.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/jslib/QuickUpload.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/jslib/ImagePreviewd.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/jslib/CJL.0.1.min.js"></script>
		<script type='text/javascript' src="<%=request.getContextPath() %>/jslib/My97DatePicker/WdatePicker.js" defer="defer"></script>
		
    <style type="text/css">
	    .top_testresult{ 
	                font-weight: bold; 
	                font-size:13px; 
	                font-family: arail,helvetica,san-serif; 
	                color:#666; 
	                padding:0; 
	                margin:0 0 2px 0; 
	                width:350px;
	                } 
		#idPicFile {
		    width:80px;height:20px;overflow:hidden;position:relative;
		    background:url(http://www.cnblogs.com/images/cnblogs_com/cloudgamer/169629/o_addfile.jpg) center no-repeat;
		}
		#idPicFile input {
		    font-size:20px;cursor:pointer;
		    position:absolute;right:0;bottom:0;
		    filter:alpha(opacity=0);opacity:0;
		    outline:none;hide-focus:expression(this.hideFocus=true);
		}
		html{overflow-x:hidden;}                
    </style>
   <script type="text/javascript">
    var api = frameElement.api, W = api.opener;
    
     $(document).ready(function() {
    	 
	     $('#cancelBtn').click(function(){
				api.close();
	    });
	     
	 });
  </script> 
		<form action="" class="fom"  method="post" onsubmit="" id="pageForm"> 
 
				  <table border="0" cellpadding="4" width="100%"  cellspacing="1"  align="center">	
				   <tr>
				   <td colspan="3"  style="background-color:#b7dbf3;text-align:center;height:20px;font-size:15px;font-weight:bold;">查看用户信息</td>
					</tr>
					<tr>
                        <td width="145"   class="td_label" >
                            <label for="loginname">用&nbsp;户&nbsp;&nbsp;名：</label>
                        </td>
                        <td width="327" class="td_value" >
                            &nbsp;<input type="text" id="loginname" name="loginname" readonly="readonly" style="width: 250px;" value="<s:property value='users.loginname'/>" onkeydown="if(event.keyCode==8)return false;" /> 
                        </td>
                        <td rowspan="4" valign="top" bgcolor="#FFFFFF" width="271">
	                         &nbsp;<span style="margin-left:70px;">头像</span>
							<div style="width:120px; height:120px; border:1px solid #666; margin-left:30px;">
	                        <img id="idImg" style="width:120px; height:120px;" src="<c:if test='${users.imgAddress==null }'><%=request.getContextPath() %>/user/img/insertpicture.png</c:if>
	                           <c:if test='${users.imgAddress!=null }'><%=request.getContextPath()%>/printImage.action?path=${users.imgAddress}</c:if>"/>
	                        </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="td_label">
                            <label for="username">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：</label>
                        </td>
                        <td class="td_value">
                            &nbsp;<input type="text" id="username" name="username" style="width: 250px;" readonly="readonly" value="<s:property value='users.username'/>" /> 
                        </td>
                    </tr>
                    <tr>
                        <td class="td_label">
                            <label for="username">性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：</label>
                        </td>
                        <td class="td_value">
                            &nbsp;<select  name="sex" id="sex" style="width: 255px;" disabled="disabled" >
                                <s:property value='users.sex'/>
                                <option value="1" <s:if test="users.sex==1">selected</s:if>>男</option>
                                <option value="0" <s:if test="users.sex==0">selected</s:if>>女</option>                  
                           </select>   
                        </td>
                    </tr>
                    <tr>
                        <td class="td_label">
                            <label for="fixedPhone">单位电话：</label> 
                        </td>
                        <td class="td_value">
                            &nbsp;<input type="text" id="companyTel" name="companyTel" style="width: 250px;" readonly="readonly" value="<s:property value='users.companyTel' />" />
                        </td>
                    </tr>
                    <tr>
                        <td class="td_label">
                            <label for="fixedPhone">家庭电话：</label> 
                        </td>
                        <td class="td_value">
                            &nbsp;<input type="text" id="fixedPhone" name="fixedPhone" style="width: 250px;" readonly="readonly" value="<s:property value='users.fixedPhone' />" />
                        </td>
                    </tr>
                    <tr>
                        <td class="td_label">
                            <label for="mobile">移动电话：</label>
                        </td>
                        <td class="td_value">
                            &nbsp;<input type="text" id="mobile" name="mobile" style="width: 250px;" readonly="readonly" value="<s:property value='users.mobile'/>" />
                        </td>
                        <td rowspan="4" valign="top" bgcolor="#FFFFFF" width="271">
                          &nbsp;<span style="margin-left:70px;">签名</span>
						<div style="width:120px; height:120px; border:1px solid #666; margin-left:30px;">
                        <img id="signImg" style="width:120px; height:120px;" src="<c:if test='${users.signAddress==null }'><%=request.getContextPath() %>/user/img/insertpicture.png</c:if>
                           <c:if test='${users.signAddress!=null }'><%=request.getContextPath()%>/printImage.action?path=${users.signAddress}</c:if>"/>                    
                       	</div>
                           </td>
                    </tr>
                    <tr>
                        <td class="td_label">
                            电子邮件：
                        </td>
                        <td class="td_value">
                            &nbsp;<input type="text" id="email" name="email" style="width: 250px;" readonly="readonly" value="<s:property value='users.email'/>"  />
                        </td>
                    </tr>
                    <tr>
                        <td class="td_label">
                            办公地址：
                        </td>
                        <td class="td_value">
                            &nbsp;<input type="text" id="address" name="address" style="width: 250px;" readonly="readonly" value="<s:property value='users.address'/>"  />
                        </td>
                    </tr>
                     <tr>
                        <td class="td_label">
                           <label for="activeLabel">用户状态：</label>  
                        </td>
                        <td colspan="2" class="td_value">
                               &nbsp;<select  name="active" id="active" style="width: 255px;" disabled="disabled">
                                <s:property value='users.active'/>
                                <option value="1" <s:if test="users.active==1">selected</s:if>>有效</option>
                                <option value="0" <s:if test="users.active==0">selected</s:if>>外出试验</option>                  
                                </select>  
                        </td>
                    </tr> 
                     
                    <tr>
                        <td class="td_label">
                            所属角色：
                        </td>
                        <td class="td_value">
                            <input type="hidden" id="roleIdStr" name="roleIdStr" value="<s:property value='users.roleIdStr'/>"/>
                            &nbsp;<input type="text" id="rolename" name="rolename"  style="width: 250px;" readonly value="<s:property value='users.roleNameStr'/>" />
                            <!--  <img src="/commission/images/accessories-magnifier.png" style="cursor: hand;vertical-align: middle;" onclick="selectRole();"></img> -->
                        </td>
                    </tr>
                    <!-- 
                    <tr>
                        <td class="td_label">
                             职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;务：
                        </td>
                        <td colspan="2" class="td_value">
                          <select name="posName" id="posName" style="width: 255px;">
                               <s:property value='users.posName'/>
                                <option value="" >请选择</option>
                                <option value="1" <s:if test="users.posName==1">selected</s:if>>助工</option>
                                <option value="2" <s:if test="users.posName==2">selected</s:if>>工程师</option>
                                <option value="3" <s:if test="users.posName==3">selected</s:if>>高级工程师</option>
                                <option value="4" <s:if test="users.posName==4">selected</s:if>>研究员</option>                  
                            </select>  
                        </td>
                    </tr>
                     -->  
                                    
                    <tr>
                        <td class="td_label">
                            <label for="securityClass">可用密级：</label>
                        </td>
                        <td colspan="2" class="td_value">
                                &nbsp;<select  name="securityClass" id="securityClass" style="width: 255px;" disabled="disabled" >
                                <s:property value='users.securityClass'/>
                                <option value="" >请选择</option>
                                <option value="1" <s:if test="users.securityClass==1">selected</s:if>>非密</option>
                                <option value="2" <s:if test="users.securityClass==2">selected</s:if>>内部</option>                
                                <option value="5" <s:if test="users.securityClass==5">selected</s:if>>一般密级</option>                
                                <option value="3" <s:if test="users.securityClass==3">selected</s:if>>秘密</option>
                                <option value="4" <s:if test="users.securityClass==4">selected</s:if>>机密</option>                
                                </select>
                        </td>
                    </tr>
                     <tr>
                        <td class="td_label">
                            所属组织：
                        </td>
                        <td class="td_value">
                           <input type="hidden" id="orgId" name="orgId"  value="<s:property value='users.organization.orgId'/>"/>
                           &nbsp;<input id="citySel" name="orgNameLabel" type="text"  value="<s:property value='users.orgNameLabel'/>" disabled="disabled" style="width:252px; height:18px; border:1px #7f9db9 solid;  no-repeat right center;"  />
                            <!-- <img src="/commission/images/accessories-magnifier.png" style="cursor: hand;vertical-align: middle;" onclick="selectOrg();"></img>
                            --> 
                        </td>
                    </tr>
                    <tr>
					<td class="td_label">
						<label for="jobName">
							岗位名称：
						</label>
					</td>
					<td colspan="2" class="td_value">
						&nbsp;<input type="text" id="jobName" name="jobName" style="width: 250px;" readonly="readonly" value="<s:property value='users.jobName'/>"  />
					</td>
				</tr>
				<tr>
					<td class="td_label">
						入职时间：
					</td>
					<td colspan="2" class="td_value">
						&nbsp;<input type='text' name='entryDate' id='entryDate'  value="<s:property value='users.entryDate'/>" class='Wdate'  style="width:250px;"  readonly="readonly" ></input>
					</td>
				</tr>
				<tr>
					<td class="td_label">
						工作年限：
					</td>
					<td colspan="2" class="td_value">
						&nbsp;<input type="text" id="workYears" name="workYears" style="width:250px;" readonly="readonly" value="<s:property value='users.workYears'/>"/>
					</td>
				</tr>
				
				<tr>
					<td class="td_label">
						所学专业：
					</td>
					<td colspan="2" class="td_value">
						&nbsp;<input type="text" id="yourMajor" name="yourMajor" style="width: 250px;" readonly="readonly" value="<s:property value='users.yourMajor'/>"/>
					</td>
				</tr>
				<tr>
					<td class="td_label">
						年龄：
					</td>
					<td colspan="2" class="td_value">
						&nbsp;<input type="text" id="age" name="age" style="width: 250px;" readonly="readonly" value="<s:property value='users.age'/>"/>
					</td>
				</tr>
				<tr>
					<td class="td_label">
						学历：
					</td>
					<td colspan="2" class="td_value"><input type="hidden" id="educationId" name="educationId"/>
						&nbsp;<input type="text" id="education" name="education" style="width: 250px;" readonly="readonly" value="<s:property value='users.education'/>"/>
		    
					</td>
				</tr>
				<tr>
					<td class="td_label">
						职称：
					</td>
					<td colspan="2" class="td_value"><input type="hidden" id="professionalId" name="professionalId"/>
						&nbsp;<input type="text" id="professional" name="professional" style="width: 250px;" readonly="readonly" value="<s:property value='users.professional'/>"/>
		    
					</td>
				</tr>
				<tr>
					<td class="td_label">
						政治面貌：
					</td>
					<td colspan="2" class="td_value"><input type="hidden" id="politicalStatusId" name="politicalStatusId"/>
						&nbsp;<input type="text" id="politicalStatus" name="politicalStatus" style="width: 250px;" readonly="readonly" value="<s:property value='users.politicalStatus'/>"/>
		    
					</td>
				</tr>	 
                    <tr>
                        <td class="td_label">
                                 用户描述：
                        </td>
                        <td colspan="2" bgcolor="#FFFFFF">
                              &nbsp;<textarea rows="8" cols="34"  id="userdesc" name="userdesc" readonly="readonly"><s:property value='users.userdesc'/></textarea>      
                        </td>
                    </tr>
					<tr>
						 <td colspan="3" style="background-color:#b7dbf3;text-align:center;height:20px;font-size:15px;font-weight:bold;">
							<input id="cancelBtn" type="button" class="button_b" value="关闭 "/>
						</td>
					</tr>
				</table>
		</form>
	</body>
</html>
